home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / 4p_v331.zip / STAT5DIV.BAT < prev    next >
DOS Batch File  |  1996-06-01  |  2KB  |  45 lines

  1. @echo off
  2. cls
  3. echo.
  4. echo STAT5DIV v3.3.1 ■■■ (C) Christian Ludloff ■■■ 01.06.96
  5. echo This code is mine!  And remember: What's mine is mine!
  6. echo.
  7. echo The patch is used to get correct results on PCs equipped with an older iPentium
  8. echo processor, which contains the FDIV bug in its floating point unit.  You can use
  9. echo the INFO program to check for the correct chips. Another check is the following
  10. echo mathematical task. Please, execute this, using a calculator software:
  11. echo.
  12. echo                  a = 4,195,835      b = 3,145,727      c = a-(a/b)*b
  13. echo.
  14. echo If the result 'c' is not equal to zero, then the Pentium processor contains the
  15. echo FDIV bug in its floating point unit and you should use this patch  to run STAT5
  16. echo at those Pentium-PC.  This patch disables the usage of the bad FPU by STAT5EMU,
  17. echo but it doesn't disable the FPU for those software, you will test with STAT5EMU.
  18. echo.
  19. echo This patch will need at least some bytes of free environment space to work cor-
  20. echo rect. Otherwise you will get an error message. Sorry, but the way is very easy!
  21. echo.
  22. echo Please, press (almost) any key to run STAT5 now! Press [CTRL-C] to quit to DOS!
  23. pause>nul
  24. cls
  25. if not exist STAT5EMU.EXE goto BAD
  26.  
  27. :OKAY
  28. rem ┌─────────────────────────────────────────────────────────────────────────┐
  29. rem │Disable usage of a detected FPU via 'SET 87=N' for software, written with│
  30. rem │Borland compilers! I used the Borland Pascal 7.0 and Turbo Assembler 3.2!│
  31. rem └─────────────────────────────────────────────────────────────────────────┘
  32. echo.
  33. set 87=N
  34. stat5emu.exe %1 %2 %3
  35. set 87=
  36. goto END
  37.  
  38. :BAD
  39. echo.
  40. echo Ops! Can't execute STAT5EMU!
  41. echo.
  42. goto END
  43.  
  44. :END
  45.